using System;
using System.Collections.Generic;
using UMC.Data;
namespace UMC.Wiki.Entities
{
public partial class ProjectDynamic
{
readonly static Action<ProjectDynamic,object>[] _SetValues=new Action<ProjectDynamic,object>[]{(r,t)=>r.Alias=Reflection.ParseObject(t, r.Alias),(r,t)=>r.Explain=Reflection.ParseObject(t, r.Explain),(r,t)=>r.project_id=Reflection.ParseObject(t, r.project_id),(r,t)=>r.refer_id=Reflection.ParseObject(t, r.refer_id),(r,t)=>r.Time=Reflection.ParseObject(t, r.Time),(r,t)=>r.Title=Reflection.ParseObject(t, r.Title),(r,t)=>r.Type=Reflection.ParseObject(t, r.Type),(r,t)=>r.user_id=Reflection.ParseObject(t, r.user_id)};
readonly static string[] _Columns=new string[]{"Alias","Explain","project_id","refer_id","Time","Title","Type","user_id"};
protected override void SetValue(string name, object obv){
var index = Utility.Search(_Columns,name, StringComparer.CurrentCultureIgnoreCase);
if (index > -1)_SetValues[index](this, obv);
}
protected override void GetValues(Action<String, object> action){
AppendValue(action,"Alias", this.Alias);
AppendValue(action,"Explain", this.Explain);
AppendValue(action,"project_id", this.project_id);
AppendValue(action,"refer_id", this.refer_id);
AppendValue(action,"Time", this.Time);
AppendValue(action,"Title", this.Title);
AppendValue(action,"Type", this.Type);
AppendValue(action,"user_id", this.user_id);
}

 protected override RecordColumn[] GetColumns(){
 var cols = new RecordColumn[8];
cols[0]= RecordColumn.Column("Alias",this.Alias);
cols[1]= RecordColumn.Column("Explain",this.Explain);
cols[2]= RecordColumn.Column("project_id",this.project_id);
cols[3]= RecordColumn.Column("refer_id",this.refer_id);
cols[4]= RecordColumn.Column("Time",this.Time);
cols[5]= RecordColumn.Column("Title",this.Title);
cols[6]= RecordColumn.Column("Type",this.Type);
cols[7]= RecordColumn.Column("user_id",this.user_id);
return cols;
}

}
}

